import request from '@/utils/request'
import { getApiUrl } from '@/utils/request'

export function listattributeValue(query) {
  return request({
    url: '/attributeValue/list',
    method: 'get',
    params: query
  })
}

export function createattributeValue(data) {
  return request({
    url: '/attributeValue/create',
    method: 'post',
    data
  })
}

export function readattributeValue(data) {
  return request({
    url: '/attributeValue/get/' + data.id,
    method: 'get'
  })
}

export function updateattributeValue(data) {
  return request({
    url: '/attributeValue/update',
    method: 'post',
    data
  })
}

export function deleteattributeValue(data) {
  return request({
    url: '/attributeValue/delete/' + data.id,
    method: 'delete'
  })
}

const uploadPath = getApiUrl() + 'data/room/uploadFile'
export { uploadPath }
